package com.wuyoucar.service.impl;

import com.wuyoucar.entity.TSafetype;
import com.wuyoucar.entity.TSafetypeitem;
import com.wuyoucar.mapper.TSafetypeMapper;
import com.wuyoucar.service.TSafetypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TSafetypeServiceImpl implements TSafetypeService {
    @Autowired
    private TSafetypeMapper tSafetypeMapper;

    @Override
    public List<TSafetype> getAllTSafetype() {
        return tSafetypeMapper.getAllTSafetype();
    }

    //查询具体险种信息
    @Override
    public List<TSafetypeitem> getAllTSafetypeitem() {
        return tSafetypeMapper.getAllTSafetypeitem();
    }

    //查询单个险种信息
    @Override
    public TSafetype getAllTSafetypeByid(Integer safetypeid) {
        return tSafetypeMapper.getAllTSafetypeByid(safetypeid);
    }
}
